package org.test.threadlocal;

/**
 * Created by Hy on 2018/7/11.
 */
public class ClientThread extends Thread{
    private Sequence sequence;
    public ClientThread(Sequence sequence){
        this.sequence = sequence;
    }

    @Override
    public void run() {
        for (int i = 0 ; i < 3 ; i++){
            System.out.println(Thread.currentThread().getName()+"=> "+sequence.getNumber());
        }
    }
}
